/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author Cheng
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '/@/api/model/baseModel';

const { adminPath } = useGlobSetting();

export interface InFireHost extends BasicModel<InFireHost> {
  equipmentName?: string; // 设备名称
  equipmentCode?: string; // 设备编号
  equipmentType?: string; // 设备类型
  equipmentTypeName?: string; // 设备类型名称
  cardCode?: string; // 卡号
  testingLastTime?: string; // 最后一次采集时间
  enterpriseId?: string; // 企业id
  enterpriseName?: string; // 企业名称
  creatTime?: string; // 添加时间
  updateTime?: string; // 更新时间
  deleted?: string; // 逻辑删除
  testingInterval?: number; // 检测间隔
}

export const inFireHostList = (params?: InFireHost | any) =>
  defHttp.get<InFireHost>({ url: adminPath + '/device/management/inFireHost/list', params });

export const inFireHostListData = (params?: InFireHost | any) =>
  defHttp.post<Page<InFireHost>>({ url: adminPath + '/device/management/inFireHost/listData', params });

export const inFireHostForm = (params?: InFireHost | any) =>
  defHttp.get<InFireHost>({ url: adminPath + '/device/management/inFireHost/form', params });

export const inFireHostSave = (params?: any, data?: InFireHost | any) =>
  defHttp.post<InFireHost>({ url: adminPath + '/device/management/inFireHost/save', params, data });

export const inFireHostDelete = (params?: InFireHost | any) =>
  defHttp.get<InFireHost>({ url: adminPath + '/device/management/inFireHost/delete', params });
